package com.lxj.permission.feign;

import com.lxj.permission.feign.fallback.UserFallBackService;
import com.lxj.utils.entity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "user",fallback = UserFallBackService.class)
public interface UserFeign {
    @GetMapping("/user/getPermissionsByUserId")
    List<Permission> getPermissionsByUserId(@RequestParam("id") Integer id);
}
